package com.cy.pj.sys.controller;

import com.cy.pj.common.pojo.JsonResult;
import com.cy.pj.sys.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysMenuController {

    @Autowired
    private SysMenuService sysMenuService;

    @RequestMapping("/menu/doFindObjects")
    public JsonResult doFindMenu(){
        return new JsonResult(sysMenuService.doFindMenu());
    }



    @RequestMapping("/menu/doUpdateMenu")
    public String doUpdateMenu(JsonResult result){
        sysMenuService.doUpdateMenu(result);
        return "update ok";
    }
}
